{% extends 'mama.html' %}
{% block content %}

<div>
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">新建用户</h3>
            </div>
            <br>
            <form class="form-horizontal" method="post"  novalidate>
                {% csrf_token %}
                {% for i in form %}
                <div class="form-group">
                    <label class="col-sm-2 control-label">{{ i.label }}</label>
                    <div class="col-sm-10">
                        {{ i }}
                        <span style="color: red;">{{ i.errors.0 }}</span>
                    </div>
                </div>
                {% endfor %}

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10" >
                        <button type="submit" class="btn btn-success" >确定提交</button>
                    </div>
                </div>

            </form>
        </div>

    </div>
</div>


{% endblock %}